import java.util.Scanner;

public class demo4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str=scanner.next();
        boolean isBig=false;
        boolean isSmall=false;
        boolean hasDig=false;
        boolean hasChar=false;
        int s=0;
        int len=str.length();
        int sum=0;
        if(len<=4) {
            sum+=5;
        } else if(len>=5&&len<=7) {
            sum+=10;
        } else {
            sum+=25;
        }
        for(int i=0;i<len;i++) {
            char t = str.charAt(i);
            if(t>='a' && t<='z' && isSmall==false) {
                sum+=10;
                isSmall=true;
            } else if (t>='A'&&t<='Z' && isBig==false) {
                sum+=10;
                isBig=true;
            }
            int f=0;
            if(t>='0'&&t<='9'&&f<2) {
                sum+=10;
                f++;
                hasDig=true;
            }
            if((t>=0x21&&t<=0x2F) || (t>=0x3A&&t<=0x40) || (t>=0x5B&&t<= 0x60) || (t>=0x7B&&t<=0x7E)) {
                hasChar=true;
                s++;
            }
        }
        if(s==1) {
            sum+=10;
        } else if(s>1) {
            sum+=25;
        }
        if(isBig&&isSmall&&hasDig&&hasChar) {
            sum+=5;
        } else if((isBig||isSmall)&&hasDig&&hasChar) {
            sum+=3;
        } else if((isBig||isSmall)&&hasDig) {
            sum+=2;
        }
        if(sum>=90) {
            System.out.println("VERY_SECURE");
        } else if(sum>=80) {
            System.out.println("SECURE");
        } else if(sum>=70) {
            System.out.println("VERY_STRONG");
        } else if(sum>=60) {
            System.out.println("STRONG");
        } else if(sum>=50) {
            System.out.println("AVERAGE");
        } else if(sum>=25) {
            System.out.println("WEAK");
        } else if(sum>=0) {
            System.out.println("VERY_WEAK");
        }
    }
}
